package board.to;

public class P1TO {
	private int p1;
	private int result;
	public P1TO() {
		super();
	}
	public P1TO(int p1, int result) {
		super();
		this.p1 = p1;
		this.result = result;
	}
	public int getP1() {
		return p1;
	}
	public void setP1(int p1) {
		this.p1 = p1;
	}
	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}
	@Override
	public String toString() {
		return "p1TO [p1=" + p1 + ", result=" + result + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + p1;
		result = prime * result + this.result;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		P1TO other = (P1TO) obj;
		if (p1 != other.p1)
			return false;
		if (result != other.result)
			return false;
		return true;
	}
	
	
}
